#!/bin/bash
set -e

out=.space.usage.txt

echo `id -u;date;pwd` >>$out
echo ------------------------------------->>$out
echo;echo `basename $0` $@>>$out
echo ------------------------------------->>$out

if test -z $1; then
echo du . ...
du -hs $PWD >>$out
echo >>$out

else

du -hs $@ >>$out
echo du $@ ...
echo >>$out

fi
